package com.lotterymanage.dao.impl;

import org.springframework.stereotype.Repository;

import com.lotterymanage.dao.InsideUserDao;
import com.lotterymanage.domain.InsideUser;

/**
 * 内部用户dao实现类.
 * @author zhangbin
 * @date Apr 20, 2010
 */
@Repository("insideUserDao")
public class InsideUserDaoImpl extends AbstractDaoImpl implements InsideUserDao {

    /**
     * 根据accounts查询内部用户.
     * @param insideUser InsideUser
     * @return InsideUser
     */
    @Override
    public InsideUser selectInsideUserByAccounts(final InsideUser insideUser) {
        return (InsideUser) this.getSqlMapClientTemplate().queryForObject("SELECT-INSIDEUSER-BY-ACCOUNTS", insideUser);
    }

}
